home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 12 / Mac Magazin and MacEasy Magazine CD - Issue 12.iso / Sharewarebibliothek / Anwendungen / Grafik / MacRTrace1.8.4.2 ƒ / MacRTrace Docs / MacRTrace Docs.rsrc / TEXT_140.txt < prev    next >
Text File  |  1995-06-22  |  4KB  |  73 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. Below is the original README file from the RTrace distribution. Note that some of the information is not directly applicable to the Macintosh version, since I have made significant changes to the way RTrace interfaces with the user. In particular, I used the Mac Toolbox, rather than SUIT, and MacRTrace saves generated images as PICTs, and animations as Quicktime movies.
  7.  
  8. Incidentally, in this day of Shareware Madness, it is rare to see such a well-designed program as Antonio's RTrace available from free. Let‚Äôs give Antonio a big round of applause for writing this fabulous ray tracer, and for donating it to the world.
  9.  
  10. ##############################################
  11.                `rtrace' RAYTRACER
  12.              written by Antonio Costa
  13.                 a_costa@inescn.pt
  14.               a_costa@inescn.rccn.pt
  15.                acc@asterix.inescn.pt
  16. ##############################################
  17.  
  18. This represents the 8th formal release of the `rtrace' Raytracer. It was written to help me understand how raytracing works, to generate cute images, and generally because I like to program.  Feel free to use it for any purpose, I am releasing it into the  public domain.
  19.  
  20. NEW: this version can be built with a user-interface from a toolkit called SUIT from uvacs@cs.virgina.edu. The SUIT user-interface toolkit exists for UNIX, DOS, MAC, Windows and a DOS extender called GO32, so theoretically this program could run unchanged in all those OS...
  21.  
  22. The input format to this ray tracer is called "SFF" or Simple File Format, after using "NFF" or Neutral File Format, which was invented by Eric Haines' for his Standard Procedural Database. The SPD was designed to allow programmers to test their raytracers on databases of varying sizes.  While not the end-all to object file formats, it has served me well.
  23.  
  24. If anyone uses or wants to use NFF, I can send a NFF to SFF converter.
  25.  
  26. SFF supports the following concepts and primitives:
  27.     point lights
  28.     directional lights
  29.     spot lights with fall-off
  30.     extended lights
  31.     2 ways of defining surfaces
  32.     spheres
  33.     axis-aligned parallelipipeds
  34.     cylinders
  35.     cones
  36.     bicubic patches
  37.     polygons
  38.     polygonal patches (normals are interpolated from corner points)
  39.     3D text with high quality
  40.     CSG operations
  41.     4x4 matrix transformations
  42.     textures
  43.     depth of field
  44.     diffuse distribution
  45.     stereoscopic pair creation
  46.  
  47. The `rtrace' raytracer supports all of these primitives, with the minor
  48. limitation that polygonal patches must be triangles (have only three
  49. vertices).
  50.  
  51. Procedural textures (with 4x4 matrix transformations) are also supported:
  52.     checkerboard
  53.     color blotches
  54.     marble
  55.     bump map
  56.     fbm
  57.     fbm bump map
  58.     wood
  59.     gloss
  60.     image mapping
  61.     waves
  62.     (and many others...)
  63.  
  64. The output from the raytracer is very simple, and not directly tied to any specific device.   It consists of a single line, with format in C style of "%c%c%c%c", which gives the resolution of the image (Width LSByte, Width MSByte, Height LSByte, Height MSByte). It is then followed by Width*Height sets of (red green blue) bytes.
  65.  
  66. I have lots of filters source code for displaying the ".pic" files, as well as interesting objects that I run accross. Filters already exist to display images on Suns, to convert to PostScript, as well as X11 bitmaps for xwud.
  67.  
  68. I advise you to get a package called the "Fuzzy Bitmap Package" (FBM), that has lots of useful programs for simple image processing, conversion, etc. The author is Michael Mauldin <mlm@nl.cs.cmu.edu>. The Utah Raster Toolkit is also a very good graphics package. Also good is Eric Haines' SPD source code, so you can generate your own fractal spheres, mountains, gears, etc.
  69.  
  70. Also thanks to the numerous authors whose research into raytracing has seen implementation in this raytracer.
  71.  
  72. Antonio Costa.
  73.